<?php 
if(isset($_REQUEST['tg']) && isset($_REQUEST['nd']) && isset($_REQUEST['vitri']) && isset($_REQUEST['style'])){
	$tg=$_REQUEST['tg'];
	$nd=$_REQUEST['nd'];
	$vitri=$_REQUEST['vitri'];
	$style=$_REQUEST['style'];
	$st='';
	if($style=='1'){
		$st="cursor:pointer;color:red;font-weight:bold;";
	}else if($style=='2'){
		$st="cursor:pointer";
	}
	$connection = mysql_connect("1.234.53.52", "cam", "5678" ) ;
	mysql_select_db("testbk130108", $connection);
	mysql_query("set names 'utf8'");
	$s="insert into holiday (vtime,vcontent) value ('".$tg."','".$nd."')";
	mysql_query($s);
	mysql_close($connection);
	$dn=date("Y-m-d");
	?>
	<lable class="iclose" onclick="ajax_showTooltip(window.event,'addle.php?thoigian=<?=$tg?>&vitri=<?=$vitri?>&le=<?=$nd?>&style=<?=$style?>',this);return false" style="<?=$st?>">
		<?php 
			if($tg==$dn){
				?>
				<font color="blue" style="font-weight:bold;"><?=$vitri?></font>
				<?php 
			}else{
				echo $vitri;	
			}
		?>
	</lable>
	<br>
	<font color='red' style="font-weight: bold" ><?=$nd?></font>
	<?php 
}
?>